'use strict';


module.exports = app => {
  const { router, controller, middleware } = app;
  const { tryError, login } = middleware;
  const { common: CTL } = controller;


  const prefix = `/ops/api`;
  //帐户管理
  router.get(`${prefix}/account/info`, tryError, login, CTL.account_info);
  router.post(`${prefix}/account/password`, tryError, login, CTL.account_password);
  router.get(`${prefix}/account/logout`, tryError, CTL.account_logout);
  router.post(`${prefix}/account/login`, tryError, CTL.account_login);


};


